<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<header class="main-header">

    <!-- Logo -->
    <a href="#" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">娱论君管理系统</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg pull-left"><b>娱论君后台操作</b></span>
    </a>

    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="/images/user2-160x160.jpg" class="user-image" alt="User Image">
                        <!--<span class="hidden-xs">${session.current_user.username}</span>-->
                        <span class="hidden-xs" th:utext="${session.current_user.userName}"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <img src="/images/user2-160x160.jpg" class="img-circle" alt="User Image">

                            <p>
                            <!--<p>${session.current_user.username}</p>-->
                            <!--<a href="#">${session.current_user.roles[0].roleName}</a>-->

                            <p th:utext="${session.current_user.userName}"></p>
                            <th:block th:unless="${#lists.isEmpty(session.current_user.roles)}">
                                <a href="#" th:utext="${session.current_user.roles[0].roleName}"></a>
                            </th:block>
                            </p>
                        </li>

                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="/updatePwd" class="btn btn-default btn-flat">修改密码</a>
                            </div>
                            <div class="pull-right">
                                <a href="/logout" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>

            </ul>
        </div>

    </nav>
</header>
